package com.kwum.pattern.ProxyPattern;


/**
 * Description: 图片类
 * Company: youjiang
 * @author Kwum
 * @date 2017年9月16日 下午4:05:38
 * @version 1.0
 */

public class RealImage implements Image{
    
    private String fileName;
    
    public RealImage(String fileName){
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    @Override
    public void display() {
        System.out.println("Displaying " + fileName);
    }
    
    private void loadFromDisk(String fileName){
        System.out.println("Loading " + fileName);
    }
}
